package com.dm.yyxr.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dm.yyxr.pojo.Consumptionlog;
import com.dm.yyxr.pojo.dto.ConsumptionDto;
import com.dm.yyxr.pojo.dto.ConsumptionnumView;
import com.dm.yyxr.pojo.dto.ConsumptionnumViewDto;

import java.util.Date;
import java.util.List;

public interface ConsumptionlogService extends IService<Consumptionlog> {
    //根据用户ID和月份获取用电量列表
    List<ConsumptionDto> getByIdAndMonth(Integer id, Date month);

    //根据区域ID和月份获取用电量
    Double getTotal(Integer id, Date month);

    //获取用电量视图的分页数据
    Page<ConsumptionnumView> getConsumptionnumView(ConsumptionnumViewDto consumptionnumViewDto);
}
